Skip to content

feat: change appDelegate intercom import to support swift #276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

mzaien
Copy link

@mzaien mzaien commented Apr 12, 2025

Hi, With the release of expo 53 now appDelegate is using swift https://arc.net/l/quote/kngujiqn

so updating the import to fix the plugin for that

@Titozzz
Copy link
Contributor

Titozzz commented Apr 14, 2025

Hey I could not edit your PR so I've pushed a more robust version, that will properly initialize the library amongst other fixes #277

@mzaien
Copy link
Author

mzaien commented Apr 14, 2025

Hey @Titozzzthank you, I can close my pr
But when do you think it will be released?

@Titozzz
Copy link
Contributor

Titozzz commented Apr 15, 2025

Haha, I wish I knew. TBH, it's sad that we have to maintain the Intercom wrapper ourselves, when there is a big company behind it. 😞

@EduardToxer
Copy link

This fix is needed for many, please pay additional attention on this problem, please ❤️
It does affect non-expo projects also.

@dackom
Copy link

dackom commented Jun 20, 2025

I updated to expo 53 and react-native 0.79.4. Now I can't use intercom anymore because it has AppDelegte.swift instead of AppDelegate.mm ... is there any solution for this?

@mzaien
Copy link
Author

mzaien commented Jun 20, 2025

I think they have fixed it already https://github.com/intercom/intercom-react-native/releases/tag/8.4.0

update to latest and check, will close the issue if it was resolved

@dackom
Copy link

dackom commented Jun 20, 2025

It works with 8.5.0, but I will just wrote it here, because I didn't see it anywhere in docs, for other people who are searching. In AppDelegate.swift you need to import it like:

import Intercom

And then later somewhere in the first function invoke it like:

Intercom.setApiKey("ios_sdk-YOUR_KEY", forAppId: "APP_ID")

@mzaien mzaien closed this Jun 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants